/**
 * Copyright(c): 2017 com.mjduan All rights reserved.
 * 项目名：myBank8
 * 注意：未经作者允许，不得外传
 */
package com.mjduan.myBank.util.entity;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author dmj1161859184@126.com 2018-08-10 23:24
 * @version 1.0
 * @since 1.0
 */
@Entity
@Table(name = "t_test")
public class Ttest {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String remark;
    private BigDecimal balance;
    @Enumerated(EnumType.ORDINAL)
    private Status status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Ttest{" +
                "id=" + id +
                ", remark='" + remark + '\'' +
                ", balance=" + balance +
                ", status=" + status +
                '}';
    }

    public enum Status {
        PENDING, SUCCESS, FAIL
    }
}
